//
//  MenuObject.m
//  Food
//
//  Created by dlios on 15-7-15.
//  Copyright (c) 2015年 李志远. All rights reserved.
//

#import "MenuObject.h"

@implementation MenuObject
- (void)dealloc
{
    [_url release];
    [_name release];
    [super dealloc];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

+ (NSMutableArray *)ClassArrayWithDictionaryArray:(NSArray *)dicArray
{
    NSMutableArray *tempArr = [NSMutableArray array];
    for (NSDictionary *dic in dicArray) {
        MenuObject *baseClass = [[MenuObject alloc] init];
        [baseClass setValuesForKeysWithDictionary:dic];
        [tempArr addObject:baseClass];
        [baseClass release];
    }
    return tempArr;
}

@end
